export function ts_hex(n: number | undefined = undefined, milliseconds: boolean = false) {
    let timestamp: number = n !== undefined ? n : Date.now()
    if (!milliseconds) {
        timestamp = Math.ceil(timestamp / 1000)
    }
    const hexString = timestamp.toString(16)
    return hexString
}
